function Person(name, age) {
    this.age = age;
    this.name = name;
}
Person.prototype.say = function() {
    console.log("Person的实例方法--say");
};
Person.show = function() {
    console.log("Person的静态方法--show");
};
Person.info = "aaaa"; //构造函数的静态属性  等价于 static info='aaa'

class Animal {
    // let a = 1  不能写，class-es6规范了写法
    constructor(name, age) {
        this.name = name;
        this.age = age;
    }
    static info = "eee";
    // static huan(){}  构造函数的静态方法
    static huan = function() {
        console.log("Animal的静态方法---huan");
    };
    //这个也是 Animal的实例方法，等价于写到了原型上
    jiao() {
        console.log("Animal的实例方法--jiao");
    }
}

let p1 = new Person("ldf", 18);
p1.say();
// console.dir(Person);
let a1 = new Animal("huang", 3);
a1.jiao();
console.dir(a1);
console.dir(Animal);